package sicnu.cs.aps.account;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import sicnu.cs.aps.IchApplicationTests;
import sicnu.cs.aps.domain.entity.User;
import sicnu.cs.aps.service.IUserService;
import sicnu.cs.aps.service.impl.UserServiceImpl;

import static sicnu.cs.aps.common.Constants.ROLE_SYSTEM;

/**
 * @author CaiKe
 * @date 2022/5/26 11:46
 */
public class Register extends IchApplicationTests {

    @Autowired
    private IUserService userService;

    @Test
    void doRegister() {
        userService.registUser(User.builder()
                .username("admin")
                .password("d033e22ae348aeb5660fc2140aec35850c4da997")
                .email("admin@qq.com")
                .mobile("12345678901")
                .build(), ROLE_SYSTEM);
    }

}